<html><head><title>Sort_(String).pb</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<pre><font face="Courier New, Courier, mono"size="2"><font color="#3A3966">;
</font><font color="#3A3966">; ------------------------------------------------------------
</font><font color="#3A3966">;
</font><font color="#3A3966">;   PureBasic - Sort (String) example file
</font><font color="#3A3966">;
</font><font color="#3A3966">;    (c) Fantaisie Software
</font><font color="#3A3966">;
</font><font color="#3A3966">; ------------------------------------------------------------
</font><font color="#3A3966">;
</font>
<font color="#3A3966">; Don't change the number of elements without add them in the data below !
</font><font color="#3A3966">;
</font><font color="#924B72">#NbElements</font> = 8

<b><font color="#3A3966">Dim</font></b> <b><font color="#3A3966">Array</font></b>.s(<font color="#924B72">#NbElements</font>)

<b><font color="#3A3966">For</font></b> k=0 <b><font color="#3A3966">To</font></b> <font color="#924B72">#NbElements</font>
  <b><font color="#3A3966">Read</font></b>.s <b><font color="#3A3966">Array</font></b>(k)
<b><font color="#3A3966">Next</font></b>

<b><font color="#3A3966">For</font></b> k=0 <b><font color="#3A3966">To</font></b> <font color="#924B72">#NbElements</font>
  <b><font color="#3A3966">Debug</font></b> <b><font color="#3A3966">Array</font></b>(k)
<b><font color="#3A3966">Next</font></b>

<font color="#3A3966">SortArray</font>(<b><font color="#3A3966">Array</font></b>(), <font color="#924B72">#PB_Sort_Ascending</font> | <font color="#924B72">#PB_Sort_NoCase</font>)

<b><font color="#3A3966">Debug</font></b> &quot;---------------------&quot;

<b><font color="#3A3966">For</font></b> k=0 <b><font color="#3A3966">To</font></b> <font color="#924B72">#NbElements</font>
  <b><font color="#3A3966">Debug</font></b> <b><font color="#3A3966">Array</font></b>(k)
<b><font color="#3A3966">Next</font></b>

<font color="#3A3966">MessageRequester</font>(&quot;Information&quot;, &quot;Sort finished !&quot;, 0)

<b><font color="#3A3966">End</font></b>


<b><font color="#3A3966">DataSection</font></b>
  <b><font color="#3A3966">Data</font></b>.s &quot;Hello&quot;, &quot;This&quot;, &quot;is&quot;, &quot;a&quot;, &quot;Nice&quot;, &quot;test&quot;, &quot;Isn't&quot;, &quot;it ?&quot;, &quot;Haha !&quot; 
<b><font color="#3A3966">EndDataSection</font></b>
</font></pre>
</body></html>
